interface FormItemProps {
  id: number;
  userName: string;
  password: string;
  nickname: string;
  phone?: string | number;
  email?: string;
  avatar?: string;
  gender: number;
  orgId?: number;
  org?: {
    id: number;
    name: string;
  };
  status: number;

  treeOrgOptions: Record<string, unknown>[];
}

interface FormProps {
  formInline: FormItemProps;
}

interface RoleFormItemProps {
  userName: string;
  nickname: string;
  /** 角色列表 */
  roleOptions: any[];
  /** 选中的角色列表 */
  ids: Record<number, unknown>[];
}

interface RoleFormProps {
  formInline: RoleFormItemProps;
}

export type { FormItemProps, FormProps, RoleFormItemProps, RoleFormProps };
